package com.erdos.common.entity;

import java.util.Date;

public class AbstractEntity {

	/** 序列主键 */
	private Long sid;

	/** 乐观锁版*/
	private Integer version=new Integer(1);

	/** 创建登录帐号) */
	private String createdBy;

	/** 创建时间 */
	private Date createdDt=new Date();

	/** 更新登录帐号) */
	private String updatedBy;

	/** 更新时间 */
	private Date updatedDt;


	// 班次
    private String shift;
    // 班时
    private String teamTime;


	public final String getShift() {
        return shift;
    }

    public final void setShift(String shift) {
        this.shift = shift;
    }

    public final String getTeamTime() {
        return teamTime;
    }

    public final void setTeamTime(String teamTime) {
        this.teamTime = teamTime;
    }


	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getCreatedBy() {
		if(createdBy==null){
			return null;
		}else{
			return createdBy;
		}
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getCreatedDt() {
		return createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getUpdatedDt() {
		return updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}

	public static void main(String[] args){
		System.out.println(Short.MAX_VALUE);
		System.out.println(Integer.MAX_VALUE);
	}
}